<template>
		<view>
			<view class="bodtitle bod_cost">
				<view class="bus">
					<image src="@/static/newimg/ysfy/yysr.svg" style="margin-right: 10rpx;"></image>
					<p>
						<b>营业收入</b>
					</p>
				</view>
				<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.sumbusinessIncome}}</span></p>
			</view>
			
			<view class="bodtitle bod_cost">
				<view class="bus">
					<image src="@/static/newimg/ysfy/zsf.svg" style="margin-right: 10rpx;"></image>
					<p>
						<b>营业成本</b>
					</p>
				</view>
				<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.sumbusinessCost}}</span></p>
			</view>
			
			

			<liveexpand :cellshows='cellshow' names='deptNm' trans='laborCost'   :celllist='deptEntityList'  title='人力成本'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/rlcb.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.sumlaborCost}}</span></p>
				</template>
			</liveexpand>
			
			<liveexpand :cellshows='cellshow' names='deptNm' trans='makeCost'   :celllist='deptEntityList'  title='制造费用'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/gl.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.summakeCost}}</span></p>
				</template>
			</liveexpand>
			
			<liveexpand :cellshows='cellshow' names='deptNm' trans='manaCost'   :celllist='deptEntityList'  title='管理费用'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/zzfy.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.summanaCost}}</span></p>
				</template>
			</liveexpand>
			
			<liveexpand :cellshows='cellshow' names='deptNm' trans='saleCost'   :celllist='deptEntityList'  title='销售费用'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/xs.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span" >{{sum.sumsaleCost}}</span></p>
				</template>
			</liveexpand>

			<liveexpand :cellshows='cellshow' names='deptNm' trans='investExamineAmt'   :celllist='deptEntityList'  title='投资'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/sjfj.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span" >{{sum.suminvestExamineAmt}}</span></p>
				</template>
			</liveexpand>

			<liveexpand :cellshows='cellshow' names='deptNm' trans='salesTax'   :celllist='deptEntityList'  title='营业税金及附加'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/zsf.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.sumsalesTax}}</span></p>
				</template>
			</liveexpand>
			
			<liveexpand :cellshows='cellshow' names='deptNm' trans='financialAmt'   :celllist='deptEntityList'  title='营业外财务费用'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/zsf.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.sumfinancialAmt}}</span></p>
				</template>
			</liveexpand>
			
			<liveexpand :cellshows='cellshow' names='deptNm' trans='profitAmt'   :celllist='deptEntityList'  title='利润总额'>
				<template #lefttitle>
					<image src="@/static/newimg/ysfy/yysr.svg" style="margin-right: 10rpx;"></image>
				</template>
				<template #text>
					<p class='solts'><label class="solts_label">￥</label><span class="solts_span">{{sum.sumprofitAmt}}</span></p>
				</template>
			</liveexpand>
			<!-- {{sum.sumprofitAmt}} -->
		</view>
</template>

<script>
	import liveexpand from '../../tools/liveExpand.vue'
	export default {
		components:{
			liveexpand
		},
		props:['deptEntityList','sum'],
		data() {
			return {
				celllist:[
					{tit:'制造一部',val:'389.00'},
					{tit:'制造二部',val:'389.00'},
					{tit:'生产管理部',val:'389.00'},
					{tit:'规划发展部',val:'389.00'},
					{tit:'品质管理部',val:'389.00'},
					{tit:'采购销售部',val:'389.00'},
					{tit:'采购销售部',val:'389.00'},
					{tit:'采购销售部',val:'389.00'},
					{tit:'整体',val:'389.00'},
				],
				cellshow:false, 
				
			}
		},
		created() {
		},
		beforeMount() {
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.bus {
		display: flex;
		flex-direction: row;
		align-items: center;
		image{
			width: 50rpx;
			height: 50rpx;
		}
		p{
			font-size: 30rpx;
		}
	}
	.bod_cost {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.bodcolor{
		span{
			color:#ff6400;
			font-size: 32rpx;
			padding-right: 20rpx;
		}
		label{
			color: #ff6400;
		}
	}
	.bodtitle{
		padding-left: 20rpx;
	}
	.bodcolors{
		span{
			// color:#ff6400;
			font-size: 32rpx;
			padding-right: 30rpx;
		}
		label{
			// color: #ff6400;
		}
	}
	.cellbot{
		color: rgb(76, 161, 255);
		 text-align: right;
		 height: 80rpx;
		 line-height: 80rpx;
		 font-size: 30rpx;
		padding-right: 20rpx;
	}
</style>
